package version1;

public class UpdateBalance extends Operation{
	
	private BankDatabase accounts;
	private int currentAccountNumber;
	
	public UpdateBalance(int currentAccountNumber,
			BankDatabase bankDatabaset) {
		accounts = bankDatabaset;
		this.currentAccountNumber = currentAccountNumber;
	}

	@Override
	public void Execute(int valMachine) {
		accounts.updateBalance(currentAccountNumber);
	}
}
